﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GridPager.ascx.cs" Inherits="Controls_GridPager" %>
<script type="text/javascript">
    function limitInputAsNum() {
        var key = window.event.keyCode;
        var ele = window.event.srcElement;
        var shiftKeyDown = window.event.shiftKey;
        if ((key >= 48 && key <= 57) || (key >= 96 && key <= 105)) {
            if (!shiftKeyDown) {
                window.event.returnValue = true;
            } else {
                window.event.returnValue = false;
            }
        } else if (key == 37 || key == 39 || key == 8 || key == 13 || key == 46) {
            window.event.returnValue = true;
        } else {
            window.event.returnValue = false;
        }
    }
</script>
<table width=100% class="pagination" cellpadding="0px" cellspacing="0px" border="0">
    <tr >
        <td style="height: 32px"  >
            <DIV class="wsd_pageleft"> 
                <asp:Button CssClass="wsd_pagebutton"  ID="btnFirst" runat="server" CausesValidation=false   OnClick="btnFirst_Click" Text="<%$resources:language,lbl_First_Page %>"/> 
                <asp:Button CssClass="wsd_pagebutton" ID="btnPrevious" runat="server" CausesValidation=false OnClick="btnPrevious_Click" Text="<%$resources:language,lbl_PreviousPage %>"/>
			    <asp:Button CssClass="wsd_pagebutton" ID="btnNext" runat="server" CausesValidation=false OnClick="btnNext_Click" Text="<%$resources:language,lbl_NextPage %>" />
			    <asp:Button CssClass="wsd_pagebutton" ID="btnLast" runat="server" CausesValidation=false OnClick="btnLast_Click" Text="<%$resources:language,lbl_Last_Page %>"/>
			</DIV>
			<DIV class="wsd_pageright">
			    <asp:Label runat="server" ID="txtInfo"> </asp:Label>
			    第<asp:TextBox CssClass="wsd_pageinput" ID="txtPage" runat="server" onkeydown="limitInputAsNum()" Width="40px"></asp:TextBox>
                    页
                <asp:Button CssClass="wsd_pagegobutton" ID="btnGoto" runat="server" Text="Go" OnClick="btnGoto_Click" />
             </DIV>
     </td>
    </tr>
   
</table>
